﻿<%@ Page Language="C#" MasterPageFile="~/BasicContent.Master" AutoEventWireup="true" CodeBehind="HairList.aspx.cs" Inherits="XinYiOffice.Web.Internal.InternalLetter.HairList" %>


<%@ Register src="../../InitControl/SearchApp.ascx" tagname="SearchApp" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link rel="stylesheet" href="/css/pagecss.css">
<script>
    $(function () {

        //删除
        $(".tdel2").click(function () {
            var len = $("input[name='chk_list']:checked").length;
            var val_list = '';
            if (len < 1) { alert('请选择删除项目'); return false; }
            if (!confirm('您确认删除所选项么?'))
            { return false; }
            $("input[name='chk_list']:checked").each(function (e) {
                val_list += $(this).attr("va") + ",";
            })
            window.location = 'delete.aspx?Id=' + val_list + "&action=InternalLetter";
        });

    });
</script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder" runat="server">

<form id="f2" name="f2" >
<div class="marketing_box">
<div class="btn_search_box">
        	<div class="clear cc" style=" padding-left:15px;">
            <div class="btn clear">
            <%if (ValidatePermission("INTERNALLETTER_ZHANNEI_LIST"))
              { %>
            <a href="javascript:;" id="search_a"  class="sj">条件查询</a>
            <%} %>
            <%if (ValidatePermission("INTERNALLETTER_ZHANNEI_LIST_ADD"))
              { %>
            <a href="add.aspx">添加</a>
            <%} %>
            <%if (ValidatePermission("INTERNALLETTER_ZHANNEI_LIST_EDIT"))
              { %>
            <a href="javascript:;" class="edit">修改</a>
            <%} %>
             <%if (ValidatePermission("INTERNALLETTER_ZHANNEI_LIST_DEL"))
              { %>
            <a href="javascript:;" class="tdel2">删除</a>
            <%} %>

            </div>
                <div class="del clear"></div>
            </div>
          
            <div class="show_search_box" style="display:none;">
        		<div class="tjss clear">
                <uc1:searchapp ID="SearchApp1" runat="server" TableName="vInternalReceiver"/>

                </div>
                <div class="clear btn_box btn_box_p">
<a href="javascript:;" class="save btn_search">查询</a>
<a href="javascript:;" class="cancel res_search">取消</a>
                </div>
        	</div>
    
        </div>
        
   
   <div class="marketing_table">
        <table cellpadding="0" cellspacing="0" id="_table">

<asp:Repeater ID="repInternalHairList" runat="server" >
                <HeaderTemplate>
                <tr>
                <th width="30" class="center"><input type="checkbox" id="cb_all"></th>
                <th width="60">编号</th>
                <th width="70">收件人</th>
                <th width="">标题</th>
                <th width="180">时间</th>
                <th></th>

                </tr>
                </HeaderTemplate>
                
                <ItemTemplate>
                <tr><td  class="center"><input type="checkbox" name="chk_list" va="<%#DataBinder.Eval(Container.DataItem, "InternalLetterId")%>"></td>
                 <td><%#DataBinder.Eval(Container.DataItem, "InternalLetterId")%></td>

                <td><%#DataBinder.Eval(Container.DataItem, "RecipientAccountFullName")%></td>
                <td><a href="show.aspx?Id=<%#DataBinder.Eval(Container.DataItem, "Id")%>"><%#DataBinder.Eval(Container.DataItem, "Title")%></a></td>
                <td><%#DataBinder.Eval(Container.DataItem, "CreateTime")%></td>
                </tr>

                </ItemTemplate>
                </asp:Repeater>

                

            </table>
        </div>
        

</div>
<%=pagehtml%>
<script>
    $('#_table td').hover(function () {
        $(this).parent().find('td').css('background', '#f0f8fc')
    }, function () {
        $(this).parent().find('td').css('background', 'none')
    });
</script>
</form>
</asp:Content>

